package com.cmc.cloud.cmclink.doc.api.document.req.si;

/**
 * @author 申天青
 * @date 2025/9/15
 */

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = " - 提单主信息 更新SI信息signType 传递数据")
public class BlnoSignTypeUpdateDto {

    @Schema(description = "数据来源", example = "edi 网厅:web 手工:manual")
    @NotBlank(message = "数据来源")
    private String dataSource;

    @Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
    private String creator;

    @NotNull(message = "提单主信息id 列表")
    private List<Long> blnoIds;

    @Schema(description = "实际签单类型 B：正本提单；W：海运单；T：电放；E：电子提单", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "blno.signtype.notblank")
    @Length(max = 1, message = "blno.signtype.length")
    private String signType;
}
